﻿<UserControl x:Class="ScrumFactory.ProjectSummary.ProjectSummary"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             
             xmlns:props="clr-namespace:ScrumFactory.ProjectSummary.Properties"        
             
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="800">
    
    <Grid HorizontalAlignment="Stretch">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
            <ToolBar Grid.Row="0">                    
                <MenuItem Header="{x:Static props:Resources.Start_project}" Command="{Binding Path=StartProjectCommand}">
                    <MenuItem.Icon>
                        <Image Source="/Images/ToolBar/startProject.png" Width="32" Height="32" Stretch="Uniform"/>
                    </MenuItem.Icon>
                </MenuItem>                
            </ToolBar>

        <StackPanel Grid.Row="1" Orientation="Vertical">
            
            
            <Border VerticalAlignment="Top" Padding="5">                

                <TextBlock                    
                    Foreground="{StaticResource TitleTextBrush}"
                    FontSize="{StaticResource ReallyBigFontSize}"
                    Margin="0,0,0,10"
                    Text="{Binding Project.ProjectName, StringFormat={x:Static props:Resources.CreateProjectSuccessMessage}}"/>



                <!--<Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="*"/>
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition />
                        <RowDefinition />
                        <RowDefinition />
                        <RowDefinition />
                    </Grid.RowDefinitions>
                    
               
                    <Image
                    Grid.Column="0" Grid.Row="1"
                    Margin="5" VerticalAlignment="Top"
                    Source="/Images/ToolBar/teammember.png" Width="24" Height="24"/>
                <TextBlock               
                    Grid.Column="1"  Grid.Row="1" Margin="0,5,0,0">
                    <TextBlock               
                        Foreground="{StaticResource LabelBrush}"
                        Text="Selecione os membros da equipe de seu projeto"/><LineBreak/>
                    <TextBlock                                    
                        FontSize="{StaticResource SmallFontSize}"
                        Foreground="{StaticResource SubTextBrush}"
                        TextWrapping="Wrap"
                        Text="Utilize a aba Equipe para adicionar e convidar os profissionais que farão parte da equipe do seu projeto."/>
                </TextBlock>
                <Image
                    Grid.Column="0" Grid.Row="2"
                    Margin="5" VerticalAlignment="Top"
                    Source="/Images/ToolBar/all_backlog.png" Width="24" Height="24"/>
                <TextBlock               
                    Grid.Column="1"  Grid.Row="2" Margin="0,5,0,0">
                    <TextBlock               
                        Foreground="{StaticResource LabelBrush}"
                        Text="Defina os itens do backlog do seu projeto"/><LineBreak/>
                    <TextBlock                                    
                        FontSize="{StaticResource SmallFontSize}"
                        Foreground="{StaticResource SubTextBrush}"
                        TextWrapping="Wrap"
                        Text="Utilize a aba Backlog para adicionar, priorizar e estimar os itens e backlog do seu projeto."/>
                </TextBlock>
                <Image
                    Grid.Column="0" Grid.Row="3"
                    Margin="5" VerticalAlignment="Top"
                    Source="/Images/ToolBar/startProject.png" Width="24" Height="24"/>
                <TextBlock               
                    Grid.Column="1"  Grid.Row="3" Margin="0,5,0,0">
                    <TextBlock               
                        Foreground="{StaticResource LabelBrush}"
                        Text="Inicie o seu projeto"/><LineBreak/>
                    <TextBlock                                    
                        FontSize="{StaticResource SmallFontSize}"
                        Foreground="{StaticResource SubTextBrush}"
                        TextWrapping="Wrap"
                        Text="Clique no botão Iniciar para começar a atibuir tarefas e monitorar o seu projeto."/>
                </TextBlock>

                </Grid>-->

                <Border.Style>
                    <Style>
                        <Style.Triggers>
                            <DataTrigger Binding="{Binding ShowCreateProjectSuccessMessage}" Value="False">
                                <Setter Property="Border.Visibility" Value="Collapsed"/>
                            </DataTrigger>
                        </Style.Triggers>
                    </Style>
                </Border.Style>
            </Border>

            <ContentPresenter            
                    HorizontalAlignment="Stretch" Margin="30,10,30,0"  Height="250"                    
                    Content="{Binding BurndownViewModel.View}"/>
            
        </StackPanel>
        


    

    </Grid>
</UserControl>
